<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let array1 = [1,2,3,4]
        // let iterator = array1[Symbol.iterator]
        // console.log('iterator:', iterator)
        // let iter = array1[Symbol.iterator]()
        // console.log(iter.next())
        // console.log(iter.next())
        // console.log(iter.next())
        // console.log(iter.next())
        // console.log(iter.next())

        // let str = 'Mercer'
        // console.log(str[Symbol.iterator])
        // let arr = [1,2,3,4]
        // console.log(arr[Symbol.iterator])
        // let map = new Map().set('a', 1)
        // console.log(map[Symbol.iterator])
        // let set = new Set().add('a').add('b')
        // console.log(set[Symbol.iterator])

    </script>
</body>
</html>